﻿
using System;

namespace A59字符串练习
{
    class Student
    {
        public string name;
        public int age;
        public int id;

        //构造函数
        public Student(string name, int age, int id)
        {
            this.name = name;
            this.age = age;
            this.id = id;
        }

        //重写Tostring
        public override string ToString()
        {
            return string.Join(" ",name,age,id);
        }

    }
}
